<script setup lang="ts">
import {marked} from "marked";
import { resumeApi } from '@/api/resume'
import {onMounted, ref} from "vue";
const htmlContent = ref('')

// 在组件挂载时首次获取数据
onMounted(async () => {
  get()
})

function get() {
  resumeApi.resume().then(res => {
    htmlContent.value = marked(res)
  })
}

</script>

<template>
  <div class="resume">
    <div v-html="htmlContent"></div>
  </div>

</template>

<style scoped lang="less">

</style>
